/**
 * <copyright>
 * </copyright>
 *
 * $Id$
 */
package node2;

import org.eclipse.emf.ecore.EObject;

/**
 * <!-- begin-user-doc -->
 * A representation of the model object '<em><b>Critical Section</b></em>'.
 * <!-- end-user-doc -->
 *
 * <p>
 * The following features are supported:
 * <ul>
 *   <li>{@link node2.CriticalSection#getData <em>Data</em>}</li>
 *   <li>{@link node2.CriticalSection#getExecutionTime <em>Execution Time</em>}</li>
 *   <li>{@link node2.CriticalSection#getTask <em>Task</em>}</li>
 * </ul>
 * </p>
 *
 * @see node2.Node2Package#getCriticalSection()
 * @model
 * @generated
 */
public interface CriticalSection extends EObject {
	/**
	 * Returns the value of the '<em><b>Data</b></em>' reference.
	 * It is bidirectional and its opposite is '{@link node2.Data#getCriticalSections <em>Critical Sections</em>}'.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of the '<em>Data</em>' reference isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @return the value of the '<em>Data</em>' reference.
	 * @see #setData(Data)
	 * @see node2.Node2Package#getCriticalSection_Data()
	 * @see node2.Data#getCriticalSections
	 * @model opposite="criticalSections" required="true"
	 * @generated
	 */
	Data getData();

	/**
	 * Sets the value of the '{@link node2.CriticalSection#getData <em>Data</em>}' reference.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @param value the new value of the '<em>Data</em>' reference.
	 * @see #getData()
	 * @generated
	 */
	void setData(Data value);

	/**
	 * Returns the value of the '<em><b>Execution Time</b></em>' attribute.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of the '<em>Execution Time</em>' attribute isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @return the value of the '<em>Execution Time</em>' attribute.
	 * @see #setExecutionTime(int)
	 * @see node2.Node2Package#getCriticalSection_ExecutionTime()
	 * @model required="true"
	 * @generated
	 */
	int getExecutionTime();

	/**
	 * Sets the value of the '{@link node2.CriticalSection#getExecutionTime <em>Execution Time</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @param value the new value of the '<em>Execution Time</em>' attribute.
	 * @see #getExecutionTime()
	 * @generated
	 */
	void setExecutionTime(int value);

	/**
	 * Returns the value of the '<em><b>Task</b></em>' reference.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of the '<em>Task</em>' reference isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @return the value of the '<em>Task</em>' reference.
	 * @see #setTask(Task)
	 * @see node2.Node2Package#getCriticalSection_Task()
	 * @model required="true"
	 * @generated
	 */
	Task getTask();

	/**
	 * Sets the value of the '{@link node2.CriticalSection#getTask <em>Task</em>}' reference.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @param value the new value of the '<em>Task</em>' reference.
	 * @see #getTask()
	 * @generated
	 */
	void setTask(Task value);

} // CriticalSection
